package com.lzx.iteam.bean;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;

/**
 * Created with IntelliJ IDEA.
 * **********************************
 * User: zhangshuai
 * Date: 2016年 05月 25日
 * Time: 上午10:09
 *
 * @QQ : 1234567890
 * **********************************
 */
public class WeeklyTemplate implements Serializable{

    /**
     * "group_id":         233,        //int, 团队ID, 如果为0表示默认模板
     "template_name":    "xx",       //string,模板名称
     "create_time":      2234,       //int, 创建时间戳
     "is_default":       1,          //int, 是否是默认，1是
     "fields":           [           //array
     {"field": "本周计划", "order": 1},    // field:string,字段名; order: int 排序（升序）
     {"field": "下周计划", "order": 2},
     {"field": "需求帮助", "order": 3}
     ]
     */

    private String group_id;
    private String template_name;
    private String create_time;
    private int is_default;
    private String _id;
    private ArrayList<String> fields;

    public String getGroup_id() {
        return group_id;
    }

    public void setGroup_id(String group_id) {
        this.group_id = group_id;
    }

    public String getTemplate_name() {
        return template_name;
    }

    public void setTemplate_name(String template_name) {
        this.template_name = template_name;
    }

    public String getCreate_time() {
        return create_time;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    public int getIs_default() {
        return is_default;
    }

    public void setIs_default(int is_default) {
        this.is_default = is_default;
    }

    public ArrayList<String> getFields() {
        return fields;
    }

    public void setFields(ArrayList<String> fields) {
        this.fields = fields;
    }

    public String get_id() {
        return _id;
    }

    public void set_id(String _id) {
        this._id = _id;
    }

    @Override
    public String toString() {
        return "WeeklyTemplate{" +
                "group_id='" + group_id + '\'' +
                ", template_name='" + template_name + '\'' +
                ", create_time='" + create_time + '\'' +
                ", is_default=" + is_default +
                ", fields=" + fields +
                '}';
    }
}
